<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="headerFragment(title,active)">
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title><th:block th:text="${title!=null?title:'LFD后台管理'}+'- EnjoyToShare'"></th:block></title>

    <link rel="shortcut icon" th:href="@{/favicon.ico}"/>
    <link th:href="@{//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet" type="text/css"/>
    <link  th:href="@{//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.min.css}" rel="stylesheet" type="text/css"/>
    <link  th:href="@{//cdn.bootcss.com/limonte-sweetalert2/6.4.1/sweetalert2.min.css}" rel="stylesheet"/>
</head>
<div th:fragment="header-body">
<div class="topbar">
    <div class="topbar-left">
        <div class="text-center p-t-10" style="margin: 0 auto;">
            <div class="pull-left" style="padding-left: 10px;">
                <a>
                    <img th:src="@{/img/logo.png}" width="210" height="57"/>
                </a>
            </div>
        </div>
    </div>
    <div class="navbar navbar-default" role="navigation">
            <div>

                <div class="pull-left">
                    <button type="button" class="button-menu-mobile open-left">
                        <i class="fa fa-bars"></i>
                    </button>
                    <span class="clearfix"></span>
                </div>

                <ul class="nav navbar-nav navbar-right pull-right">
                    <li class="dropdown">
                        <a th:href="@{system/index.html}" class="dropdown-toggle profile" data-toggle="dropdown"
                           aria-expanded="true"><img th:src="@{/favicon.ico}" alt="user-img"
                                                     class="img-circle"/> </a>
                        <ul class="dropdown-menu">
                            <li><a th:href="@{#}"><i class="fa fa-sun-o"></i> 个人设置</a></li>
                            <li><a th:href="@{/lfd/admin/logout}"><i class="fa fa-sign-out"></i> 注销</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>

<div class="left side-menu">
    <div class="sidebar-inner">
        <div id="sidebar-menu">
            <ul>
                <li th:class="${active}=='home'?'active':''">
                    <a th:href="@{/lfd/admin/index}"
                       th:class="${active}=='home'?'waves-effect active':'waves-effect'"><i
                            class="fa fa-wpexplorer" aria-hidden="true"></i><span> 仪表盘 </span></a>
                </li>
                <li>
                    <a th:href="@{#}">
                        <i class="fa fa-language" aria-hidden="true"></i> <span>仓库管理</span></a>
                    <ul>
                        <li th:class="${active}=='storage'?'active':''">
                            <a th:href="@{/lfd/admin/inventory/storage}"
                               th:class="${active}=='storage'?'waves-effect active':'waves-effect'"><i
                                    class="fa fa-pencil-square-o" aria-hidden="true"></i><span> 库存管理 </span></a>
                        </li>
                        <li th:class="${active}=='warehouse'?'active':''">
                            <a th:href="@{/lfd/admin/inventory/warehouse}"
                               th:class="${active}=='warehouse'?'waves-effect active':'waves-effect'"><i
                                    class="fa fa-pencil-square-o" aria-hidden="true"></i><span> 入库管理 </span></a>
                        </li>
                        <li th:class="${active}=='outofwarehouse'?'active':''">
                            <a th:href="@{/lfd/admin/inventory/outofwarehouse}"
                               th:class="${active}=='outofwarehouse'?'waves-effect active':'waves-effect'"><i
                                    class="fa fa-pencil-square-o" aria-hidden="true"></i><span> 出库管理 </span></a>
                        </li>

                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
</div>
</div>
</html>
